package cn.tedu.gateway.beijing.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;

import java.time.ZonedDateTime;

@RestController
@RequestMapping("/bj")
public class BeiJingController {
    @Value("${server.port}")
    private Integer port;

    @GetMapping("/show")
    public String show(@RequestHeader("color") String color, @RequestParam("age") Integer age){
        System.out.println(ZonedDateTime.now());
        return "北京欢迎您"+":"+port+":"+color+":"+age;
    }
}
